<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>单选按钮</title>
</head>
<body>
<!--view层，模板-->
<div id="ace">
    <input type="radio" id="one" value="One,Cayde 6" v-model="picked"/>
    <label for="one">One</label>
    <br>
    <input type="radio" id="two" value="Two,Cayde 6" v-model="picked"/>
    <label for="two">Two</label>
    <br>
    <span>Picked: {{ picked }}</span>
</div>
<!--1.导入Vue.js-->
<script src="https://cdn.jsdelivr.net/npm/vue@2.5.21/dist/vue.min.js"></script>
<script type="text/javascript">
    let vue = new Vue({
        el: '#ace',
        data: {
            picked: ''
        }
    });
</script>
<!--checkbox 和 radio 使用 checked property 和 change 事件-->
</body>
</html>